package CH6;


public class TestMain {
    static void printInTestMain(LearningAble l){
        l.learing();
    }

    public static void main(String[] args) {
        Liubotao liu=new Liubotao();
        liu.learing();

        LearningAble l=liu;
        l.learing();
        printInTestMain(liu);

        l=new LearningImpl();
        l.learing();
        printInTestMain(new LearningImpl());
    }
}
